|
|
|
|
|
|
|
Within the Src directory, code is separated into subdirectories by chapter. For example, the source code for Chapter 7 is in the Src\Ch7 directory. |
|
|
|
|
|
|
|
|
The OldSrc directory is similarly divided, although the chapters refer to the chapters in the book's first edition, so the subdirectories do not exactly match those in the Src directory. For example, the first edition's Chapter 7 covered two-dimensional transformations, and this edition's Chapter 12 covers that material. That means the OldSrc\Ch7 directory contains material similar to the Src\Ch12 subdirectory. |
|
|
|
|
|
|
|
|
You can load the example programs from the Visual Basic environment using the File menu's Open Project command. You can select the files directly from the CD-ROM, or you can copy them onto your hard disk. |
|
|
|
|
|
|
|
|
Note that files are always marked read-only on a CD-ROM. If you copy the files to your hard disk, they are marked read-only by default. If you want to modify one of the files, you must make sure it is not marked read-only. |
|
|
|
|
|
|
|
|
You can do this with the File Manager. First copy the file onto your hard disk. Next select the file or files you want to unmark and invoke the File menu's Properties command. Uncheck the Read Only check box and press the OK button. |
|
|
|
|
|
|
|
|
When you run the example programs, keep in mind that they are for demonstration purposes only. They are intended to help you understand particular graphic concepts, and they do not spend a great deal of time validating data and trapping errors. If you enter invalid data, the programs may crash. |
|
|
|
|
|
|
|
|
Invalid "Retained" Keyword |
|
|
|
|
|
|
|
|
The programs on the CD-ROM are saved in Visual Basic 6 format. If you try to run them in Visual Basic 5, you will get an error message complaining about an invalid "Retained" keyword. To fix this problem, edit the program's .vbp file using an editor such as Notepad. Find any lines that say "Retained=0" and remove them. Save the file and open the program in Visual Basic 5. |
|
|
|
|
|
|
|
|
For updates, bug fixes, and to see what other readers are doing with graphics in Visual Basic, visit the book's Web page at www.vb-helper.com/vbgp.htm. If you generate particularly interesting images, let me know at RodStephens@vb-helper.com. If your images are interesting enough, I may post them on the book's Web page. |
|
|
|
|
|